﻿<?php
session_start();
if (!isset($_session['user_guid']))
{
//	header("Location:login.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>
        纽威网站管理系统
    </title>
    <script type="text/javascript" src="../Files/Javascript/jquery.js"></script>
    <script type="text/javascript" src="../Files/Javascript/common.js"></script>
    <script type="text/javascript">
        var setmenu =
        [
            [
                ['产品信息维护'],
                [
                    ['添加产品', 'AddProducts.php'],
                    ['维护产品', 'ModProducts.php'],
                ],
                ['产品分类维护'],
                [
                    ['维护分类', 'ModCategories.php'],
                ],
            ],
            [
                ['联系我们'],
                [
                    ['查看/修改', 'ModContact.php'],
                ],
                ['关于我们'],
                [
                    ['查看/修改', 'ModRegarding.php'],
                ],
            ],
            [
                ['站点维护'],
                [
                    ['站点图片管理', 'ModSiteImg.php'],
                ],
            ],
        ];
        jQuery(function($) {
            $("#leftnav").html(documentmenu('all'));
            $("#mainframe").load(function(){
                $(this).height($(this).contents().find("#content").height());
            });
            $("#ulToolbar_inbox div").mouseover(function(){
                $(this).addClass("on");
            }).mouseout(function(){
                $(this).removeClass("on");
            });
            $(".gFd li").mouseover(function(){
                $(this).addClass("on");
            }).mouseout(function(){
                $(this).removeClass("on");
            });
        });
        $.toggleTree = function(ico, container) {
            $("#" + ico).toggleClass('clsFd');
            $("#" + ico).toggleClass('opnFd');
            $("#" + container).toggle();
        }
        $.getnav = function(nid, type) {
            $("#ulTab a").removeClass("on");
            $("#" + nid).addClass("on");
            $("#leftnav").html(documentmenu(type));
        }
        $.autoheight = function() {
            var fHeight = $("#mainframe").contents().find("body").height();
            if (fHeight < 540) {
                fHeight = 540;
            }
            $("#mainframe").height(fHeight+20);
        }
        $.currentnav = function() {
            $(".gFd li").click(function(){
                $(".gFd li").each(function(){
                    $(this).removeClass('current');
                });
                $(this).addClass('current');
            });
        }
    </script>
    <link href="../Files/Css/globle.css" rel="stylesheet" type="text/css" />
</head>

<body class="gb">
    <div class="gTop" id="dvTop">
        <a href="javascript:;" target="_blank" id="lnkHome">
            <img src="../Files/images/LOGO.png" alt="goodway" class="gLogo" id="imgLogo" border="0" />
        </a>
        <!--页面总导航栏-->
        <div class="gNav">
            <ul id="ulTab">
                <li>
                    <a class="on" href="home.php" target="mainframe" id="home" onclick="$.getnav('home', 'all'); return false;">
                       后台首页
                    </a>
                </li>
                <li>
                    <a href="javascript:;" id="game" onclick="$.getnav('game', 0)">
                        产品管理
                    </a>
                </li>
                <li>
                    <a href="javascript:;" id="user" onclick="$.getnav('user', 1)">
                       联系方式及公司简介
                    </a>
                </li>
                <li>
                    <a href="javascript:;" id="info" onclick="$.getnav('info', 2)">
                        站点信息管理
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <table class="gMain">
<tr class="gMtr">
            <td class="gLe">
                <!--<div class="gMbtn" id="set_a_line_area3">
<a href="javascript:;" class="gCmBtn" title="收信">
                        <b class="hide">
                            收信
                        </b>
                  </a>
<a href="javascript:;" class="gWmBtn" title="写信">
                        <b class="hide">
                            写信
                        </b>
                  </a>
                </div>-->
                <div id="leftnav">

                </div>
            </td>
            <td class="gRi" id="divMain">
                <iframe src="home.php" id="mainframe" name="mainframe" width="100%;" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" onload="$.autoheight();"></iframe>
            </td>
      </tr>
</table>
</body>
</html>